package com.example.ai.repository;

import com.example.ai.model.ReviewHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ReviewHistoryRepository extends JpaRepository<ReviewHistory, Long> {
    Page<ReviewHistory> findByWrongQuestionIdOrderByCreatedAtDesc(Long wrongQuestionId, Pageable pageable);
} 